package couk.mmtdigital.sm.control.commands
{
		
	import couk.mmtdigital.sm.view.ApplicationMediator;
	import couk.mmtdigital.sm.view.ButtonControlBarMediator;
	import couk.mmtdigital.sm.view.FilePanelMediator;
	import couk.mmtdigital.sm.view.LoginViewMediator;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class ViewPrepCommand extends SimpleCommand implements ICommand
	{
		override public function execute(notification:INotification):void{
			var app:SpreadsheetManager = notification.getBody() as SpreadsheetManager;
			facade.registerMediator(new ApplicationMediator(app));
			facade.registerMediator(new LoginViewMediator(app.loginView));
			facade.registerMediator(new ButtonControlBarMediator(app.bcb));
		}		
	}
}